package cn.stylefeng.guns.modular.hx.storage.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

import com.baomidou.mybatisplus.annotation.IdType;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

/**
 * <p>
 * 拣货单明细表
 * </p>
 *
 * @author zhucx
 * @since 2023-09-05
 */
@Data
@TableName("hx_storage_out_detailed")
public class HxStorageOutDetailed implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 拣货单编号
     */
    @TableField("storage_number")
    private String storageNumber;

    /**
     * 新零帮库位id
     */
    @TableField("xlb_position_id")
    private String xlbPositionId;

    /**
     * 库位id
     */
    @TableField("position_id")
    private Long positionId;

    /**
     * 库位编号
     */
    @TableField("position_number")
    private String positionNumber;

    /**
     * 拣货顺序
     */
    @TableField("position_pickingorder")
    private String positionPickingorder;

    /**
     * 序号
     */
    @TableField("order_number")
    private String orderNumber;

    /**
     * 最后一条
     */
    @TableField("last")
    private String last;

    /**
     * 新零帮商品id
     */
    @TableField("xlb_goods_id")
    private String xlbGoodsId;

    /**
     * 商品id
     */
    @TableField("goods_id")
    private Long goodsId;

    /**
     * 商品名称
     */
    @TableField("goods_name")
    private String goodsName;

    /**
     * 商品编号
     */
    @TableField("goods_number")
    private String goodsNumber;

    /**
     * 商品码
     */
    @TableField("goods_pcode69")
    private String goodsPcode69;

    /**
     * 商品码2
     */
    @TableField("goods_xcode69")
    private String goodsXcode69;

    /**
     * 商品码3
     */
    @TableField("goods_hcode69")
    private String goodsHcode69;

    /**
     * 规格
     */
    @TableField("goods_specs")
    private String goodsSpecs;

    /**
     * 基本单位
     */
    @TableField("jiben_unit")
    private String jibenUnit;

    /**
     * 基本数量
     */
    @TableField("jiben_num")
    private String jibenNum;

    /**
     * 单位
     */
    @TableField("unit")
    private String unit;

    /**
     * 换算率
     */
    @TableField("rate")
    private String rate;

    /**
     * 数量
     */
    @TableField("num")
    private String num;

    /**
     * 实拣数量
     */
    @TableField("real_num")
    private String realNum;

    /**
     * 复核数量
     */
    @TableField("quality_num")
    private String qualityNum;

    /**
     * 重量
     */
    @TableField("goods_weight")
    private String goodsWeight;

    /**
     * 应出重量
     */
    @TableField("out_weight")
    private String outWeight;

    /**
     * 体积
     */
    @TableField("goods_volume")
    private String goodsVolume;

    /**
     * 应出体积
     */
    @TableField("out_volume")
    private String outVolume;

    /**
     * 单价
     */
    @TableField("goods_price")
    private String goodsPrice;

    /**
     * 金额
     */
    @TableField("out_money")
    private String outMoney;

    /**
     * 批次
     */
    @TableField("batch")
    private String batch;

    /**
     * 生产日期
     */
    @TableField("detailed_date")
    private String detailedDate;

    /**
     * 到期日期
     */
    @TableField("daoqi_date")
    private String daoqiDate;

    /**
     * 库存id
     */
    @TableField("stock_id")
    private Long stockId;

    /**
     * 托盘id
     */
    @TableField("tray_id")
    private Long trayId;

    /**
     * 托盘编号
     */
    @TableField("tray_number")
    private String trayNumber;

    /**
     * 收货客户id
     */
    @TableField("get_unit_id")
    private Long getUnitId;

    /**
     * 收货客户
     */
    @TableField("get_unit")
    private String getUnit;

    /**
     * 备注
     */
    @TableField("nodes")
    private String nodes;

    /**
     * 拣货时间
     */
    @TableField("storage_time")
    private Date storageTime;

    /**
     * 是否已拣
     */
    @TableField("picked")
    private String picked;

    /**
     * v1
     */
    @TableField("v1")
    private String v1;

    /**
     * v2
     */
    @TableField("v2")
    private String v2;

    /**
     * 赠品单位
     */
    @TableField("present_unit")
    private String presentUnit;

    /**
     * 赠品数量
     */
    @TableField("present_quantity")
    private BigDecimal presentQuantity;

    /**
     * 赠品换算率
     */
    @TableField("present_ratio")
    private BigDecimal presentRatio;

    /**
     * 赠基本数量
     */
    @TableField("basic_present_quantity")
    private BigDecimal basicPresentQuantity;

    /**
     * 库位基本数量
     */
    @TableField("basic_position_quantity")
    private BigDecimal basicPositionQuantity;

    @Override
    public String toString() {
        return "HxStorageOutDetailed{" +
                "id=" + id +
                ", storageNumber=" + storageNumber +
                ", positionId=" + positionId +
                ", positionNumber=" + positionNumber +
                ", goodsId=" + goodsId +
                ", goodsName=" + goodsName +
                ", goodsNumber=" + goodsNumber +
                ", goodsPcode69=" + goodsPcode69 +
                ", goodsXcode69=" + goodsXcode69 +
                ", goodsSpecs=" + goodsSpecs +
                ", unit=" + unit +
                ", num=" + num +
                ", realNum=" + realNum +
                ", qualityNum=" + qualityNum +
                ", goodsWeight=" + goodsWeight +
                ", outWeight=" + outWeight +
                ", goodsVolume=" + goodsVolume +
                ", outVolume=" + outVolume +
                ", goodsPrice=" + goodsPrice +
                ", outMoney=" + outMoney +
                ", batch=" + batch +
                ", detailedDate=" + detailedDate +
                ", trayId=" + trayId +
                ", trayNumber=" + trayNumber +
                ", nodes=" + nodes +
                ", storageTime=" + storageTime +
                ", picked=" + picked +
                ", v1=" + v1 +
                ", v2=" + v2 +
                ",presentUnit" + presentUnit +
                ",presentQuantity" + presentQuantity +
                ",presentRatio" + presentRatio +
                ",basicPresentQuantity" + basicPresentQuantity +
                ",basicPositionQuantity" + basicPositionQuantity +
                "}";
    }
}
